<script setup>
import {test} from '@/api/main'

const testLoading = async () => {
  try {
    const res = await test()
    console.log(res)
  } catch (err) {
    console.error(err)
  }
}

</script>

<template>
  <el-button type="primary" @click="testLoading">axios测试</el-button>
</template>
